{% extends 'index.html' %}

{% block extra-css %}
    <link rel="stylesheet" href="/statics/plugins/kindeditor/themes/default/default.css"/>
    <style>
        .kind-content {
            width: 100%;
            min-height: 500px;
        }
    </style>
{% endblock %}

{% block right-content %}
    <ol class="breadcrumb" style="margin-bottom: 0;">
        <li><a href="{% url 'TroubleList' %}">保障管理</a></li>
        <li class="active">创建报障单</li>
    </ol>

    <div class="form-group">
{#    <h1>反馈问题简介</h1>#}
    <ol  class="menu-item" >
    <h3 >{{ obj.title }}</h3>
    </ol>
{#    <input  class="form-control" value="{{ obj.title }}">#}

    </div>

    <div style="padding: 5px 8px;">
{#   novalidate="novalidate"不对输入进行校验  #}
        <form method="POST" action="/trouble/trouble-kill-{{ nid }}.html"  novalidate="novalidate">
            {% csrf_token %}
        <div class="row">
{#     调整checkbox的大小       #}
{#                 <input style="zoom:160%;" type="checkbox"  />#}

            <div class="col-xs-3 form-group form-group-sm " >
                <h4>是否选择不处理：</h4>
                <select name="unHandle" class="form-control input-lg btn btn-default" data-toggle="tooltip" data-placement="left" title="如果无法处理请选择后提交">
                    <option selected="selected" value="0">--请选择-- </option>
                    <option value="1">能力不足</option>
                    <option value="2">问题不归我管</option>
                    <option value="3">没有时间或点错了</option>
                </select>
            </div>
        </div>


{#<div class="btn-group">#}
{#  使用按钮跳转  #}
{#     <button onclick="window.location.href=('trouble-create-model-{{ nid }}.html')" type="button" class="btn btn-primary">新建模板 </button>#}
{#      <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">#}
{#        <span class="caret"></span>#}
{#        <span class="sr-only">Toggle Dropdown</span>#}
{#      </button>#}
{#     无限级子菜单，需要导入dropdown     #}
{#    <ul class="dropdown-menu">#}
{#        <li class="offset-right dropdown">#}
{#            <a href="#" class="dropdown-toggle">使用模板回复</a>#}
{#            <ul class="dropdown-menu">#}
{#                <li>#}
{#                <li class="offset-right dropdown">#}
{#                    {% for ty in tylist %}#}
{#                        <a href="#" class="dropdown-toggle">{{ ty }}</a>#}
{#                    <ul class="dropdown-menu">#}
{#                        {% for title in data %}#}
{#                            {% if title.mtype == ty %}#}
{#                        <li>#}
{#                            <a href="#">{{ title.tplnew1__titleInfo }}</a>#}
{#                        </li>#}
{#                            {% endif %}#}
{#                        {% endfor %}#}
{#                    </ul>#}
{#            {% endfor %}#}
{#                </li>#}
{#                </li>#}
{#            </ul>#}
{#        </li>#}
{##}
{##}
{#       第二个     #}
{##}
{#                      <li class="offset-right dropdown">#}
{#                    <a href="#" class="dropdown-toggle">将回复存储于模板</a>#}
{#                    <ul class="dropdown-menu">#}
{#                        <li><a href="#">啦啦啦</a></li>#}
{#                        <li><a href="#">Something else here</a></li>#}
{#                        <li><a href="#">Something else here</a></li>#}
{#                        <li class="divider"></li>#}
{#                        <li><a href="#">Another link</a></li>#}
{#                    </ul>#}
{##}
{#            </li>#}
{##}
{#      </ul>#}
{##}
{#    </div>#}



            <div class="form-group">
                {{ form.solution }}
            </div>
            <div class="form-group">
                <input type="submit" class="btn btn-primary" value="提 交">
            </div>
        </form>
    </div>


{% endblock %}

{% block extra-js %}
    <script src="/statics/plugins/bootstrap/js/bootstrap.min.js"></script>
    <script charset="utf-8" src="/statics/plugins/kindeditor/kindeditor-min.js"></script>
    <script charset="utf-8" src="/statics/plugins/kindeditor/lang/zh_CN.js"></script>
    <script>
        var editor = null;
        KindEditor.ready(function (K) {
            editor = K.create('#solution', {
                resizeType: 1
            });
        });

    </script>
{% endblock %}